package cn.yudao.org.mapper;

import cn.yudao.org.domain.Department;
import cn.yudao.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface DepartmentMapper {

    // 查询所有
    List<Department> findAllDepartment();

    // 根据id查询数据
    Department findByIdDepartment(Long id);

    // 新增
    void addDepartment(Department department);

    // 修改
    void uptDepartment(Department department);

    // 根据id删除
    void removeDepartment(Long id);

    // 根据查询高级查询
    List<Department> queryDepartment(DepartmentQuery departmentQuery);

    // 查询总条数
    Integer pagecount(DepartmentQuery departmentQuery);


}
